//---------------------------------------------------------------------------
#ifndef A2PointH
#define A2PointH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Dialogs.hpp>
#include <Menus.hpp>

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#include <dir.h>

#include "Math.h"

//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
 TMainMenu *MainMenu1;
 TListBox *ListBox1;
 TMenuItem *File1;
 TMenuItem *Open1;
 TOpenDialog *FOpen1;
 void __fastcall Open1Click(TObject *Sender);
 void __fastcall FormCreate(TObject *Sender);
private:	// User declarations
public:		// User declarations
 __fastcall TForm1(TComponent* Owner);


  long __fastcall Snes2Pc( long ofs );
  long __fastcall FileSize( FILE *tf );
  long __fastcall BuildTable( BYTE *data, WORD *ptr, LONG Size );    

  BYTE rom[0x10000];
  WORD ptr[0x00200];

  char cur_dir[MAXPATH];
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
